/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.Question1.employees.Impl;

/**
 *
 * @author 208067396
 */
public abstract class Employees {
    
    private int empNumber;
    private String name;
    private String surname;
    private String jobTitle;
    private double grossAmount;
    
    public Employees()
    {
        
    }
    
    public Employees(int number, String nme, String surn, String job, double gAmount)
    {
        empNumber = number;
        name = nme;
        surname = surn;
        jobTitle = job;
        grossAmount = gAmount;
        
    }

    /**
     * @return the empNumber
     */
    public int getEmpNumber() {
        return empNumber;
    }

    /**
     * @param empNumber the empNumber to set
     */
    public void setEmpNumber(int empNumber) {
        this.empNumber = empNumber;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the surname
     */
    public String getSurname() {
        return surname;
    }

    /**
     * @param surname the surname to set
     */
    public void setSurname(String surname) {
        this.surname = surname;
    }

    /**
     * @return the jobTitle
     */
    public String getJobTitle() {
        return jobTitle;
    }

    /**
     * @param jobTitle the jobTitle to set
     */
    public void setJobTitle(String jobTitle) {
        this.jobTitle = jobTitle;
    }

    /**
     * @return the salary
     */
   
    
    public abstract double calcTax();

    /**
     * @return the grossAmount
     */
    public double getGrossAmount() {
        return grossAmount;
    }

    /**
     * @param grossAmount the grossAmount to set
     */
    public void setGrossAmount(double grossAmount) {
        this.grossAmount = grossAmount;
    }
    
    @Override
    public String toString()
    {
        String mes = empNumber + name + surname + jobTitle + grossAmount;
        
        return mes;
    }
    
    
    
    
    
}
